﻿@page
@model OpenPms.Areas.D.Pages.Setup.WXMsg.IndexModel
@inject WXWorkSvc.Third.WXWork3rd wx
@{
    ViewBag.Title = "微信消息";
}
<div class="weui-cells">
    @foreach (var item in Model.Items)
    {

        <a class="weui-cell weui-cell_access" asp-page="./Edit" asp-route-WXMsgType="@item.WXMsgType">
            <div class="weui-cell__bd">
                <p>@item.WXMsgType</p>
            </div>
            <div class="weui-cell__ft">
            </div>
        </a>
        <div class="weui-cells">
            @foreach (var userName in item.DisplayUserIds.Split(" | "))
            {
                <div class="weui-cell">
                    <div class="weui-cell__bd">
                        <p>@Html.Raw(userName)</p>
                    </div>
                    <div class="weui-cell__ft"></div>
                </div>
            }
        </div>

    }
</div>
@section scripts
{
    @Html.Raw(await wx.GetAgentJsConfigAsync(Request, User.GetCorpId()))
}
